lib/repo-pull: Prefer object pull over from-scratch delta if ref exists
authorPhilip Withnall <withnall@endlessm.com>
Mon, 21 May 2018 14:11:36 +0000 (15:11 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 20 Aug 2018 13:04:58 +0000 (13:04 +0000)
commite7305bbc8a262d595c7d1c507be7fba0e5a88d06
tree4e2c380ddef4acf4e5b47a618809f3e0a58a0e66
parent2b19869307252b3fc038e4166f6f34a0d1f1e5ac
lib/repo-pull: Prefer object pull over from-scratch delta if ref exists

If a ref already exists, we are likely only a few commits behind the
current head of the ref, so it is probably better for bandwidth
consumption to pull the individual objects rather than the from-scratch
delta.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1709
Approved by: cgwalters
src/libostree/ostree-repo-pull.c